----------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/dan/Dropbox/Coauthors/Butler_Tavits/Writing/Ethnic Cooperation/Repli
> cation Files/Butler_Tavits_PSRM.log
  log type:  text
 opened on:  28 Oct 2019, 15:34:00

. do "/var/folders/8g/5gbvwzs50lngn70c9zlptr9w0000gn/T//SD02643.000000"

. 
. ** Authors: Dan Butler and Margit Tavits
. ** Title: "Shared Interests Foster Interethnic Cooperation Among Politicians"
. ** Journal: Political Science Research and Methods
. ** This file recreates Figure 2 in the paper
. 
. ** Change the directory to where the data is stored
. cd "~/Dropbox/Coauthors/Butler_Tavits/Writing/Ethnic Cooperation/Replication Files/"
/Users/dan/Dropbox/Coauthors/Butler_Tavits/Writing/Ethnic Cooperation/Replication Files

. clear

. 
. ** Open the data file
. use "2013 Bosnian Census.dta", clear

. ** The data was drawn from the Bosnian 2013 Census. 
. ** As of October, 2019, it was available at the following website: http://www.popis.go
> v.ba/popis2013/knjige.php?id=0
. 
. ** Only keep the total (and not the gender breakdown)
. keep if group=="Ukupno"
(312 observations deleted)

. 
. ** Drop observations for Kantons and other larger areas 
. drop if area=="BOSNA I HERCEGOVINA" | area=="FEDERACIJA BOSNE I HERCEGOVINE" | area=="
> FEDERACIJA BOSNE I HERCEGOVINE" | area=="BRČKO DISTRIKT BOSNE I HERCEGOVINE" | area=="
> REPUBLIKA SRPSKA" | regexm(area,"KANTON")==1
(14 observations deleted)

. 
. ** Percent of population for each of the 3 main ethnicities
. gen adjtot=tot-notdec-others-unknown

. 
. g p_croat=croat/adjtot

. g p_bosniak=bosniak/adjtot

. g p_serb=serbs/adjtot

. 
. ** Create Graph
. ** Install the following if it is not already installed:
. ** ssc install triplot
. #delimit;
delimiter now ;
. triplot p_croat  p_bosniak  p_serb,  
> graphregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white)) 
> ltext(Percent Croat) rtext(Percent Bosniak) btext(Percent Serb) ;

. #delimit cr;
delimiter now cr
. 
. 
. ** Areas where one group is dominant 
. count if p_croat>.8 | p_bos>.8 | p_serb>.8
  102

. ** Total number of cities=142; cities with 1 dominant group==102.   72% where one grou
> p dominates (This point is made in the body of the paper near Figure 2)
. 
end of do-file

. do "/var/folders/8g/5gbvwzs50lngn70c9zlptr9w0000gn/T//SD02643.000000"

. 
. ** Authors: Dan Butler and Margit Tavits
. ** Title: "Shared Interests Foster Interethnic Cooperation Among Politicians"
. ** Journal: Political Science Research and Methods
. ** This file recreates the following from the paper:
. 
. clear

. set more off

. 
. ** Change the directory to where the data is stored
. cd "~/Dropbox/Coauthors/Butler_Tavits/Writing/Ethnic Cooperation/Replication Files/"
/Users/dan/Dropbox/Coauthors/Butler_Tavits/Writing/Ethnic Cooperation/Replication Files

. use "EliteCooperation.dta"

. 
. *********************
. ** Create Variabes **
. *********************
. 
. ** General Control Variables
.         gen off_female=q2==2

.                 label var off_female "Female Respondent"

.         gen off_bosniak=q1==3

.                 label var off_bosniak "Bosniak Respondent"

.         gen off_serb=q1==1

.                 label var off_serb "Serb Respondent"

.         gen off_croat=q1==2

.                 label var off_croat "Croat Respondent"

.         gen off_other=q1==95

. 
. **Generate "elected officials" using q3
.         generate elected =.
(1,389 missing values generated)

.         replace elected = 1 if q3>0
(809 real changes made)

.         recode elected .=0
(elected: 580 changes made)

.                 label var elected "Elected Official"

.                 
. ** Experience & Region
.         rename q3 tenure 

.                 label var tenure "Years in Office"

.         
.                 label var RSentity "Republika Srpska"

.                 
. ** Genderate Variables for the IPA Experiment           
.         egen combined_q15=rowtotal(q15_1 q15_2 q15_3 q15_4)

.         gen dv_pick_partner1=combined_q15==1

.         
.         gen tr_partner1_coethnic=1 if q15_1!=. | q15_3!=.
(622 missing values generated)

.                 replace tr_partner1_coethnic=0 if tr_partner1_coethnic==.
(622 real changes made)

.         
.         gen dv_pick_coethnicpartner= 1 - abs(dv_pick_partner1 - tr_partner1_coethnic)

.         
.         gen tr_knowpartner_pref=1 if q15_3!=. | q15_4!=.
(822 missing values generated)

.                 replace tr_knowpartner_pref=0 if tr_knowpartner_pref==.
(822 real changes made)

.         
. ** This drops the people who said "Other" for ethnicity.        
.         drop if q1==95
(47 observations deleted)

. 
. *************************************   
. ** Information Given in Footnote 8 **
. ** Issue Priorites and Ethnicity   **
. *************************************   
. ** Issue: Child Care
. tab q1 q4_1, row

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

  We would |
   like to |
  start by |
collecting |
some basic |
informatio |
   n about |  Here is a list of some issues that local
 you. What |   governments deal with. Please rank the 
      is y | Most impo          2          3  Least Imp |     Total
-----------+--------------------------------------------+----------
   Serbian |       358        106         20          6 |       490 
           |     73.06      21.63       4.08       1.22 |    100.00 
-----------+--------------------------------------------+----------
  Croatian |       127         76         23          6 |       232 
           |     54.74      32.76       9.91       2.59 |    100.00 
-----------+--------------------------------------------+----------
   Bosniak |       340        216         46         18 |       620 
           |     54.84      34.84       7.42       2.90 |    100.00 
-----------+--------------------------------------------+----------
     Total |       825        398         89         30 |     1,342 
           |     61.48      29.66       6.63       2.24 |    100.00 


. ** Issue: Education
. tab q1 q4_2, row

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

  We would |
   like to |
  start by |
collecting |
some basic |
informatio |
   n about |
 you. What |                  Education
      is y | Most impo          2          3  Least Imp |     Total
-----------+--------------------------------------------+----------
   Serbian |        89        341         48         12 |       490 
           |     18.16      69.59       9.80       2.45 |    100.00 
-----------+--------------------------------------------+----------
  Croatian |        83        128         16          5 |       232 
           |     35.78      55.17       6.90       2.16 |    100.00 
-----------+--------------------------------------------+----------
   Bosniak |       222        328         56         14 |       620 
           |     35.81      52.90       9.03       2.26 |    100.00 
-----------+--------------------------------------------+----------
     Total |       394        797        120         31 |     1,342 
           |     29.36      59.39       8.94       2.31 |    100.00 


. ** Issue: Maintaining Roads
. tab q1 q4_3, row

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

  We would |
   like to |
  start by |
collecting |
some basic |
informatio |
   n about |
 you. What |              Maintaining Roads
      is y | Most impo          2          3  Least Imp |     Total
-----------+--------------------------------------------+----------
   Serbian |        20         34        350         86 |       490 
           |      4.08       6.94      71.43      17.55 |    100.00 
-----------+--------------------------------------------+----------
  Croatian |         9         21        140         62 |       232 
           |      3.88       9.05      60.34      26.72 |    100.00 
-----------+--------------------------------------------+----------
   Bosniak |        31         54        420        115 |       620 
           |      5.00       8.71      67.74      18.55 |    100.00 
-----------+--------------------------------------------+----------
     Total |        60        109        910        263 |     1,342 
           |      4.47       8.12      67.81      19.60 |    100.00 


. ** Issue: Political Participation
. tab q1 q4_4, row

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

  We would |
   like to |
  start by |
collecting |
some basic |
informatio |
   n about |
 you. What |          Political Participation 
      is y | Most impo          2          3  Least Imp |     Total
-----------+--------------------------------------------+----------
   Serbian |        23          9         72        386 |       490 
           |      4.69       1.84      14.69      78.78 |    100.00 
-----------+--------------------------------------------+----------
  Croatian |        13          7         53        159 |       232 
           |      5.60       3.02      22.84      68.53 |    100.00 
-----------+--------------------------------------------+----------
   Bosniak |        27         22         98        473 |       620 
           |      4.35       3.55      15.81      76.29 |    100.00 
-----------+--------------------------------------------+----------
     Total |        63         38        223      1,018 |     1,342 
           |      4.69       2.83      16.62      75.86 |    100.00 


.   
. *********************************
. ** Table 1. IPA and Partnering ** 
. *********************************
.         ** In the information condition, the Co-ethnic always prefers the R's least fa
> vored project.
.         ** Column 1     
.         reg dv_pick_coethnicpartner tr_knowpartner_pref 

      Source |       SS           df       MS      Number of obs   =     1,342
-------------+----------------------------------   F(1, 1340)      =    159.26
       Model |    35.61581         1    35.61581   Prob > F        =    0.0000
    Residual |   299.66884     1,340  .223633463   R-squared       =    0.1062
-------------+----------------------------------   Adj R-squared   =    0.1056
       Total |   335.28465     1,341  .250025839   Root MSE        =     .4729

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |  -.3315282   .0262704   -12.62   0.000    -.3830639   -.2799925
              _cons |   .6477987    .016772    38.62   0.000     .6148965     .680701
-------------------------------------------------------------------------------------

.                 ** Tests if each group is different from 50% (the no bias point)
.                 test _cons=.5

 ( 1)  _cons = .5

       F(  1,  1340) =   77.66
            Prob > F =    0.0000

.                 test _cons+ tr_knowpartner_pref=.5      

 ( 1)  tr_knowpartner_pref + _cons = .5

       F(  1,  1340) =   82.57
            Prob > F =    0.0000

.         ** Column 2     
.         reg dv_pick_coethnicpartner tr_knowpartner_pref if q1==3

      Source |       SS           df       MS      Number of obs   =       620
-------------+----------------------------------   F(1, 618)       =     23.50
       Model |  5.67490898         1  5.67490898   Prob > F        =    0.0000
    Residual |  149.246059       618  .241498477   R-squared       =    0.0366
-------------+----------------------------------   Adj R-squared   =    0.0351
       Total |  154.920968       619    .2502762   Root MSE        =    .49142

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |  -.1968801   .0406143    -4.85   0.000    -.2766389   -.1171212
              _cons |   .5639687   .0251106    22.46   0.000     .5146561    .6132812
-------------------------------------------------------------------------------------

.                 test _cons=.5

 ( 1)  _cons = .5

       F(  1,   618) =    6.49
            Prob > F =    0.0111

.                 test _cons+ tr_knowpartner_pref=.5

 ( 1)  tr_knowpartner_pref + _cons = .5

       F(  1,   618) =   17.34
            Prob > F =    0.0000

.         ** Column 3     
.         reg dv_pick_coethnicpartner tr_knowpartner_pref if q1==2

      Source |       SS           df       MS      Number of obs   =       232
-------------+----------------------------------   F(1, 230)       =     25.54
       Model |  5.62502072         1  5.62502072   Prob > F        =    0.0000
    Residual |  50.6508413       230  .220221049   R-squared       =    0.1000
-------------+----------------------------------   Adj R-squared   =    0.0960
       Total |  56.2758621       231  .243618451   Root MSE        =    .46928

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |   -.313101   .0619515    -5.05   0.000    -.4351659    -.191036
              _cons |   .7265625   .0414786    17.52   0.000     .6448358    .8082892
-------------------------------------------------------------------------------------

.                 test _cons=.5

 ( 1)  _cons = .5

       F(  1,   230) =   29.84
            Prob > F =    0.0000

.                 test _cons+ tr_knowpartner_pref=.5

 ( 1)  tr_knowpartner_pref + _cons = .5

       F(  1,   230) =    3.54
            Prob > F =    0.0613

.         ** Column 4
.         reg dv_pick_coethnicpartner tr_knowpartner_pref if q1==1

      Source |       SS           df       MS      Number of obs   =       490
-------------+----------------------------------   F(1, 488)       =    171.63
       Model |  31.8656103         1  31.8656103   Prob > F        =    0.0000
    Residual |  90.6017366       488  .185659296   R-squared       =    0.2602
-------------+----------------------------------   Adj R-squared   =    0.2587
       Total |  122.467347       489  .250444472   Root MSE        =    .43088

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |  -.5166142   .0394333   -13.10   0.000    -.5940943   -.4391342
              _cons |   .7253521   .0255681    28.37   0.000     .6751149    .7755893
-------------------------------------------------------------------------------------

.                 test _cons=.5

 ( 1)  _cons = .5

       F(  1,   488) =   77.68
            Prob > F =    0.0000

.                 test _cons+ tr_knowpartner_pref=.5

 ( 1)  tr_knowpartner_pref + _cons = .5

       F(  1,   488) =   94.13
            Prob > F =    0.0000

. 
.         ** Get the results in the Bottom of Table 1
.         ** Use interaction terms to compare the difference in treatments across groups
.                 gen serb_tr =off_serb*tr_knowpartner_pref

.         ** The Interaction term gives the "Serbs-Bosniaks" result at bottom of Table 1
.                 reg dv_pick_coethnicpartner tr_knowpartner_pref off_serb serb_tr if of
> f_serb==1 | off_bosniak==1

      Source |       SS           df       MS      Number of obs   =     1,110
-------------+----------------------------------   F(3, 1106)      =     57.86
       Model |  37.6440965         3  12.5480322   Prob > F        =    0.0000
    Residual |  239.847795     1,106  .216860574   R-squared       =    0.1357
-------------+----------------------------------   Adj R-squared   =    0.1333
       Total |  277.491892     1,109  .250218117   Root MSE        =    .46568

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |  -.1968801   .0384869    -5.12   0.000    -.2723956   -.1213645
           off_serb |   .1613834   .0364665     4.43   0.000      .089832    .2329349
            serb_tr |  -.3197342   .0574243    -5.57   0.000    -.4324071   -.2070613
              _cons |   .5639687   .0237953    23.70   0.000     .5172797    .6106577
-------------------------------------------------------------------------------------

.         ** The Interaction term gives the "Serbs-Croats" result at bottom of Table 1
.                 reg dv_pick_coethnicpartner tr_knowpartner_pref off_serb serb_tr if of
> f_croat==1 | off_serb==1

      Source |       SS           df       MS      Number of obs   =       722
-------------+----------------------------------   F(3, 718)       =     65.15
       Model |  38.4496381         3   12.816546   Prob > F        =    0.0000
    Residual |  141.252578       718   .19673061   R-squared       =    0.2140
-------------+----------------------------------   Adj R-squared   =    0.2107
       Total |  179.702216       721  .249240244   Root MSE        =    .44354

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |   -.313101   .0585542    -5.35   0.000    -.4280589    -.198143
           off_serb |  -.0012104   .0472194    -0.03   0.980     -.093915    .0914942
            serb_tr |  -.2035133   .0712483    -2.86   0.004    -.3433931   -.0636335
              _cons |   .7265625   .0392041    18.53   0.000     .6495942    .8035308
-------------------------------------------------------------------------------------

. 
.         ** Footnote 12: Focus on those who didn't choose political participation as th
> eir least favorite issue
.                 reg dv_pick_coethnicpartner tr_knowpartner_pref if q4_4!=4

      Source |       SS           df       MS      Number of obs   =       324
-------------+----------------------------------   F(1, 322)       =     20.98
       Model |   4.9520689         1   4.9520689   Prob > F        =    0.0000
    Residual |  75.9985484       322  .236020337   R-squared       =    0.0612
-------------+----------------------------------   Adj R-squared   =    0.0583
       Total |  80.9506173       323  .250621106   Root MSE        =    .48582

-------------------------------------------------------------------------------------
dv_pick_coethnicp~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
tr_knowpartner_pref |  -.2543548   .0555292    -4.58   0.000    -.3636007    -.145109
              _cons |       .585   .0343526    17.03   0.000     .5174161    .6525839
-------------------------------------------------------------------------------------

.         
.         ** Gives results from the control condition, mentioned as follows in the paper
>  "the Croat and Serb respondents showed a stronger preference for working with a coeth
> nic than the Bosniak respondents (73% versus 56%) indicating a higher level of baselin
> e in-group preference."  
.                 table q1 tr_knowpartner_pref, c(mean dv_pick_coethnicpartner)

------------------------------
We would  |
like to   |
start by  |
collectin |
g some    |
basic     |
informati |
on about  |
you. What |tr_knowpartner_pref
is y      |        0         1
----------+-------------------
  Serbian | .7253521  .2087379
 Croatian | .7265625  .4134615
  Bosniak | .5639687  .3670886
------------------------------

.         
.         * Table OA5, Column 1: Look at the Effect by Elected or Not
.                 reg dv_pick_coethnicpartner tr_knowpartner_pref##elected 

      Source |       SS           df       MS      Number of obs   =     1,342
-------------+----------------------------------   F(3, 1338)      =     56.86
       Model |  37.9127432         3  12.6375811   Prob > F        =    0.0000
    Residual |  297.371907     1,338  .222251051   R-squared       =    0.1131
-------------+----------------------------------   Adj R-squared   =    0.1111
       Total |   335.28465     1,341  .250025839   Root MSE        =    .47144

---------------------------------------------------------------------------------------
dv_pick_coethnicpar~r |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
1.tr_knowpartner_pref |  -.4006421   .0406717    -9.85   0.000    -.4804294   -.3208548
            1.elected |  -.1083086   .0338212    -3.20   0.001     -.174657   -.0419603
                      |
  tr_knowpartner_pref#|
              elected |
                 1 1  |   .1198792   .0531646     2.25   0.024     .0155842    .2241743
                      |
                _cons |   .7100592   .0256427    27.69   0.000     .6597549    .7603634
---------------------------------------------------------------------------------------

.         
.         
. ***************************
. ** EU Benefits and Trust ** 
. ***************************
. 
. ** Identify the Respodents who are negative towards the EU      
.         ** Table OA2.1
.         tabulate q6a_1

   Bosnia is one of the countries being |
 considered for future EU membership... |
                                   Firs |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
             Limitless traveling rights |         77       10.42       10.42
                    Economic prosperity |         54        7.31       17.73
                 Educational prosperity |         15        2.03       19.76
                      Improved security |         37        5.01       24.76
    Resolving internal political issues |         27        3.65       28.42
Improvement of the legal system / rule  |         49        6.63       35.05
Resolving bribery and corruption issues |         26        3.52       38.57
                     Access to EU funds |         65        8.80       47.36
                     Foreign investment |         11        1.49       48.85
Employment opportunities / broader labo |         85       11.50       60.35
     Broader market for export of goods |         12        1.62       61.98
                                EU laws |          5        0.68       62.65
       Openness of market (unspecified) |         51        6.90       69.55
                              Stability |         14        1.89       71.45
                Better living standards |         39        5.28       76.73
                Respect of human rights |         22        2.98       79.70
                      Economic progress |          8        1.08       80.78
                     Better health care |          2        0.27       81.06
Strengthening Integration (unification) |          6        0.81       81.87
                         Access to NATO |          1        0.14       82.00
                                  Other |         14        1.89       83.90
                   No benefits foreseen |         97       13.13       97.02
                                  DK/NA |         22        2.98      100.00
----------------------------------------+-----------------------------------
                                  Total |        739      100.00

. 
.         ** Table OA2.2
.         gen EUdoubters=0

.                 replace EUdoubters=1 if q6a_1==97
(97 real changes made)

.                 replace EUdoubters=2 if q6a_1==98
(22 real changes made)

.                 replace EUdoubters=. if q6a_1==.
(603 real changes made, 603 to missing)

.         tabulate EUdoubters q1, column

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

           |    We would like to start by
           |      collecting some basic
           | information about you. What is y
EUdoubters |   Serbian   Croatian    Bosniak |     Total
-----------+---------------------------------+----------
         0 |       216        115        289 |       620 
           |     78.26      89.15      86.53 |     83.90 
-----------+---------------------------------+----------
         1 |        54         12         31 |        97 
           |     19.57       9.30       9.28 |     13.13 
-----------+---------------------------------+----------
         2 |         6          2         14 |        22 
           |      2.17       1.55       4.19 |      2.98 
-----------+---------------------------------+----------
     Total |       276        129        334 |       739 
           |    100.00     100.00     100.00 |    100.00 


.         
. ** Prepare Variables for analysis
.         gen tr_EU_benefits=0

.                 replace tr_EU_benefits=1 if q6a_1!=.
(739 real changes made)

.                                                 
.         rename whoQ10_ethn rd1_ethn

.         rename whoq10_gen rd1_gen

.         rename q10 rd1_dv

.         rename whoQ11_ethn rd2_ethn

.         rename whoq11_gen rd2_gen

.         rename q11 rd2_dv

.         rename whoQ12_ethn rd3_ethn

.         rename whoq12_gen rd3_gen

.         rename q12 rd3_dv

.         rename whoQ13_ethn rd4_ethn

.         rename whoq13_gen rd4_gen

.         rename q13 rd4_dv

. 
.         ** Create 4 observations - 1/round
.         expand 4
(4,026 observations created)

.         bysort id: gen round=_n

. 
.                 gen dv_game=.
(5,368 missing values generated)

.                 gen tr_game_partner_noncoethnic=0

.                 gen tr_game_oppositegender=0

.         
.         forvalues i=1/4{
  2.                 replace dv_game= rd`i'_dv if round==`i'
  3.                 replace tr_game_partner_noncoethnic=1 if q1!=rd`i'_ethn & round==`i
> '
  4.                 replace tr_game_oppositegender=1 if q2!=rd`i'_gen & round==`i'
  5.                 }
(1,342 real changes made)
(881 real changes made)
(685 real changes made)
(1,342 real changes made)
(896 real changes made)
(655 real changes made)
(1,342 real changes made)
(883 real changes made)
(675 real changes made)
(1,342 real changes made)
(886 real changes made)
(667 real changes made)

. 
.                 label var tr_game_partner_noncoethnic "Non-coethnic Partner"

.                 gen interaction=tr_game_partner_noncoethnic*tr_EU_benefits

.                 label var interaction "Non-coethnic Partner * EU Benefits"

.                 tsset  id round
       panel variable:  id (strongly balanced)
        time variable:  round, 1 to 4
                delta:  1 unit

. 
.         ***************
.         ** Table 2 **
.         ***************
.         ** Column 1
.         xtreg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter, re

Random-effects GLS regression                   Number of obs     =      5,368
Group variable: id                              Number of groups  =      1,342

R-sq:                                           Obs per group:
     within  = 0.0418                                         min =          4
     between = 0.0022                                         avg =        4.0
     overall = 0.0142                                         max =          4

                                                Wald chi2(3)      =     176.47
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.8609627   .0863436    -9.97   0.000    -1.030193   -.6917323
       tr_EU_benefits |  -.2061124   .1484066    -1.39   0.165    -.4969841    .0847593
          interaction |   .1617575   .1177503     1.37   0.170    -.0690287    .3925438
                _cons |    4.98887    .109471    45.57   0.000     4.774311     5.20343
----------------------+----------------------------------------------------------------
              sigma_u |  2.1215057
              sigma_e |  1.8010898
                  rho |  .58114326   (fraction of variance due to u_i)
---------------------------------------------------------------------------------------

.                 outreg2 using "REs_Exp2", dec(2) word label se replace ctitle(All)
REs_Exp2.rtf
dir : seeout

.         ** Column 2
.         xtreg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==1, re

Random-effects GLS regression                   Number of obs     =      1,960
Group variable: id                              Number of groups  =        490

R-sq:                                           Obs per group:
     within  = 0.0591                                         min =          4
     between = 0.0127                                         avg =        4.0
     overall = 0.0271                                         max =          4

                                                Wald chi2(3)      =      98.34
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -1.114801   .1403561    -7.94   0.000    -1.389894   -.8397078
       tr_EU_benefits |   -.244255   .2430086    -1.01   0.315    -.7205431    .2320331
          interaction |   .3693892   .1883161     1.96   0.050     .0002964     .738482
                _cons |   4.820067   .1823396    26.43   0.000     4.462688    5.177446
----------------------+----------------------------------------------------------------
              sigma_u |  2.1234842
              sigma_e |  1.7517949
                  rho |  .59503863   (fraction of variance due to u_i)
---------------------------------------------------------------------------------------

.                 outreg2 using "REs_Exp2", dec(2) word label se append ctitle(Serbians)
REs_Exp2.rtf
dir : seeout

.         ** Column 3
.         xtreg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==2, re

Random-effects GLS regression                   Number of obs     =        928
Group variable: id                              Number of groups  =        232

R-sq:                                           Obs per group:
     within  = 0.0862                                         min =          4
     between = 0.0155                                         avg =        4.0
     overall = 0.0358                                         max =          4

                                                Wald chi2(3)      =      69.17
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -1.011972   .1824091    -5.55   0.000    -1.369487   -.6544568
       tr_EU_benefits |  -.0602941   .3440886    -0.18   0.861    -.7346953     .614107
          interaction |  -.0767905   .2538393    -0.30   0.762    -.5743063    .4207254
                _cons |   4.997846   .2517447    19.85   0.000     4.504436    5.491257
----------------------+----------------------------------------------------------------
              sigma_u |  2.1287862
              sigma_e |   1.598846
                  rho |  .63934898   (fraction of variance due to u_i)
---------------------------------------------------------------------------------------

.                 outreg2 using "REs_Exp2", dec(2) word label se append ctitle(Croatians
> )
REs_Exp2.rtf
dir : seeout

.         ** Column 4
.         xtreg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==3, re

Random-effects GLS regression                   Number of obs     =      2,480
Group variable: id                              Number of groups  =        620

R-sq:                                           Obs per group:
     within  = 0.0220                                         min =          4
     between = 0.0002                                         avg =        4.0
     overall = 0.0043                                         max =          4

                                                Wald chi2(3)      =      37.49
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.6007562   .1337447    -4.49   0.000     -.862891   -.3386215
       tr_EU_benefits |  -.2032512   .2210641    -0.92   0.358    -.6365288    .2300264
          interaction |   .0880582   .1835811     0.48   0.631     -.271754    .4478705
                _cons |   5.101718   .1613666    31.62   0.000     4.785445    5.417991
----------------------+----------------------------------------------------------------
              sigma_u |  2.0845081
              sigma_e |  1.9048244
                  rho |  .54494986   (fraction of variance due to u_i)
---------------------------------------------------------------------------------------

.                 outreg2 using "REs_Exp2", dec(2) word label se append ctitle(Croatians
> )
REs_Exp2.rtf
dir : seeout

.         
. 
.         ** Table OA4: Means and standard deviations by groups
.         bysort q1: summarize dv_game

----------------------------------------------------------------------------------------
-> q1 = Serbian

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
     dv_game |      1,960    4.086735    2.783608          0         10

----------------------------------------------------------------------------------------
-> q1 = Croatian

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
     dv_game |        928    4.260776    2.697014          0         10

----------------------------------------------------------------------------------------
-> q1 = Bosniak

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
     dv_game |      2,480     4.62621    2.830743          0         10


.         
.         ** Table OA5, Column 2.  Elected Heterogenous Treatment Effects for Trust Expe
> riment
.         xtreg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter##elected, re

Random-effects GLS regression                   Number of obs     =      5,368
Group variable: id                              Number of groups  =      1,342

R-sq:                                           Obs per group:
     within  = 0.0427                                         min =          4
     between = 0.0254                                         avg =        4.0
     overall = 0.0308                                         max =          4

                                                Wald chi2(5)      =     213.72
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.8596753   .0862628    -9.97   0.000    -1.028747   -.6906034
       tr_EU_benefits |  -.1899865   .1471604    -1.29   0.197    -.4784155    .0984425
        1.interaction |  -.0046208   .1444476    -0.03   0.974    -.2877329    .2784912
            1.elected |   .6159333   .1376388     4.47   0.000     .3461661    .8857004
                      |
  interaction#elected |
                 1 1  |    .295813   .1485022     1.99   0.046      .004754     .586872
                      |
                _cons |   4.620309   .1361828    33.93   0.000     4.353395    4.887222
----------------------+----------------------------------------------------------------
              sigma_u |  2.0925587
              sigma_e |  1.8004348
                  rho |  .57461822   (fraction of variance due to u_i)
---------------------------------------------------------------------------------------

. 
.         ***************
.         ** Table OA6 **
.         ***************
.         ** Column 1
.         areg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter, absorb(id)
note: tr_EU_benefits omitted because of collinearity

Linear regression, absorbing indicators         Number of obs     =      5,368
                                                F(   2,   4024)   =      87.73
                                                Prob > F          =     0.0000
                                                R-squared         =     0.6901
                                                Adj R-squared     =     0.5866
                                                Root MSE          =     1.8011

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.8825301    .088412    -9.98   0.000    -1.055867   -.7091936
       tr_EU_benefits |          0  (omitted)
          interaction |    .165933   .1207848     1.37   0.170    -.0708721    .4027381
                _cons |   4.888083   .0468009   104.44   0.000     4.796328    4.979839
----------------------+----------------------------------------------------------------
                   id |     F(1341, 4024) =      6.547   0.000        (1342 categories)

.                 outreg2 using "EU_Benefits", dec(2) word label se replace ctitle(All)
EU_Benefits.rtf
dir : seeout

.         ** Column 2
.         areg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==1, absorb
> (id)
note: tr_EU_benefits omitted because of collinearity

Linear regression, absorbing indicators         Number of obs     =      1,960
                                                F(   2,   1468)   =      46.11
                                                Prob > F          =     0.0000
                                                R-squared         =     0.7032
                                                Adj R-squared     =     0.6039
                                                Root MSE          =     1.7518

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -1.098662   .1432724    -7.67   0.000    -1.379703   -.8176217
       tr_EU_benefits |          0  (omitted)
          interaction |   .3540676   .1926526     1.84   0.066    -.0238361    .7319713
                _cons |   4.677526   .0742693    62.98   0.000     4.531841    4.823211
----------------------+----------------------------------------------------------------
                   id |      F(489, 1468) =      6.848   0.000         (490 categories)

.                 outreg2 using "EU_Benefits", dec(2) word label se append ctitle(Serbia
> ns)
EU_Benefits.rtf
dir : seeout

.         ** Column 3
.         areg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==2, absorb
> (id)
note: tr_EU_benefits omitted because of collinearity

Linear regression, absorbing indicators         Number of obs     =        928
                                                F(   2,    694)   =      32.75
                                                Prob > F          =     0.0000
                                                R-squared         =     0.7369
                                                Adj R-squared     =     0.6486
                                                Root MSE          =     1.5988

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -1.030405   .1858621    -5.54   0.000    -1.395325    -.665486
       tr_EU_benefits |          0  (omitted)
          interaction |  -.0369023   .2594569    -0.14   0.887    -.5463169    .4725124
                _cons |   4.961209   .1017039    48.78   0.000     4.761524    5.160893
----------------------+----------------------------------------------------------------
                   id |       F(231, 694) =      8.002   0.000         (232 categories)

.                 outreg2 using "EU_Benefits", dec(2) word label se append ctitle(Croati
> ans)
EU_Benefits.rtf
dir : seeout

.         ** Column 4
.         areg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==3, absorb
> (id)
note: tr_EU_benefits omitted because of collinearity

Linear regression, absorbing indicators         Number of obs     =      2,480
                                                F(   2,   1858)   =      20.91
                                                Prob > F          =     0.0000
                                                R-squared         =     0.6606
                                                Adj R-squared     =     0.5472
                                                Root MSE          =     1.9048

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |   -.656658   .1376482    -4.77   0.000    -.9266193   -.3866966
       tr_EU_benefits |          0  (omitted)
          interaction |   .0906857   .1890634     0.48   0.632    -.2801133    .4614848
                _cons |    5.02829   .0732771    68.62   0.000     4.884576    5.172004
----------------------+----------------------------------------------------------------
                   id |      F(619, 1858) =      5.807   0.000         (620 categories)

.                 outreg2 using "EU_Benefits", dec(2) word label se append ctitle(Bosnia
> ks)
EU_Benefits.rtf
dir : seeout

.                 
.         * Results for first round only
.         reg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if round==1

      Source |       SS           df       MS      Number of obs   =     1,342
-------------+----------------------------------   F(3, 1338)      =      3.96
       Model |  94.6516072         3  31.5505357   Prob > F        =    0.0080
    Residual |  10671.7001     1,338  7.97585957   R-squared       =    0.0088
-------------+----------------------------------   Adj R-squared   =    0.0066
       Total |  10766.3517     1,341  8.02859934   Root MSE        =    2.8242

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.4521956   .2389113    -1.89   0.059    -.9208771    .0164859
       tr_EU_benefits |  -.1794417   .2633415    -0.68   0.496    -.6960489    .3371655
          interaction |   -.077125   .3258669    -0.24   0.813    -.7163907    .5621407
                _cons |   5.154545   .1904046    27.07   0.000     4.781021    5.528069
---------------------------------------------------------------------------------------

.         reg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==1 & round=
> =1

      Source |       SS           df       MS      Number of obs   =       490
-------------+----------------------------------   F(3, 486)       =      1.65
       Model |  38.7721645         3  12.9240548   Prob > F        =    0.1776
    Residual |  3813.32784       486  7.84635357   R-squared       =    0.0101
-------------+----------------------------------   Adj R-squared   =    0.0040
       Total |      3852.1       489  7.87750511   Root MSE        =    2.8011

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.3426587   .4081413    -0.84   0.402    -1.144598    .4592807
       tr_EU_benefits |   .2232745   .4474953     0.50   0.618    -.6559899    1.102539
          interaction |  -.3968113   .5447015    -0.73   0.467    -1.467072    .6734493
                _cons |   4.585714   .3347996    13.70   0.000     3.927881    5.243548
---------------------------------------------------------------------------------------

.         reg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==2 & round=
> =1

      Source |       SS           df       MS      Number of obs   =       232
-------------+----------------------------------   F(3, 228)       =      4.18
       Model |  86.6917297         3  28.8972432   Prob > F        =    0.0066
    Residual |  1575.75224       228  6.91119402   R-squared       =    0.0521
-------------+----------------------------------   Adj R-squared   =    0.0397
       Total |  1662.44397       231  7.19672712   Root MSE        =    2.6289

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.7617424     .51927    -1.47   0.144    -1.784924    .2614391
       tr_EU_benefits |   .1345721    .575128     0.23   0.815    -.9986735    1.267818
          interaction |  -.7088804   .7290761    -0.97   0.332    -2.145469    .7277081
                _cons |   5.270833   .3794512    13.89   0.000     4.523154    6.018513
---------------------------------------------------------------------------------------

.         reg dv_game tr_game_partner_noncoethnic tr_EU_benefits inter if q1==3 & round=
> =1

      Source |       SS           df       MS      Number of obs   =       620
-------------+----------------------------------   F(3, 616)       =      0.84
       Model |  20.7459769         3  6.91532563   Prob > F        =    0.4713
    Residual |  5060.64757       616  8.21533697   R-squared       =    0.0041
-------------+----------------------------------   Adj R-squared   =   -0.0008
       Total |  5081.39355       619  8.20903643   Root MSE        =    2.8662

---------------------------------------------------------------------------------------
              dv_game |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------+----------------------------------------------------------------
tr_game_partner_non~c |  -.3706309   .3538235    -1.05   0.295    -1.065477    .3242158
       tr_EU_benefits |  -.5249787   .3898464    -1.35   0.179    -1.290568    .2406105
          interaction |   .3871486    .483882     0.80   0.424    -.5631097    1.337407
                _cons |   5.490196   .2838001    19.35   0.000     4.932863    6.047529
---------------------------------------------------------------------------------------

. 
end of do-file

